package com.cloudcc.mobile.dao.impl;

/**
 * Created by dev on 2017/5/18.
 */

public class BeauInfoShareSet {

    public interface BeauInfoGenggaiJilu {
        void changeLei(String str);
    }

    public interface BeauInfoShareDao {

        void share();
    }
    public interface BeauinfoToast {

        void showToast(String str);
    }

    static BeauInfoGenggaiJilu changeLeixing;
    static BeauInfoShareDao shareDao;
    static BeauinfoToast BeauinfoToast;
    private static volatile BeauInfoShareSet agent = null;

    public static BeauInfoShareSet getInstance() {
        if (agent == null) {
            synchronized (BeauInfoShareSet.class) {

                agent = new BeauInfoShareSet();
            }
        }
        return agent;
    }

    public void addBeauInfoShare(BeauInfoShareDao shareDao2){

        shareDao = shareDao2;
    }

    public void setShareDao(){
        shareDao.share();
    }



    public void addBeauInfoChange(BeauInfoGenggaiJilu changeLeixing2){

        changeLeixing = changeLeixing2;
    }

    public void setChangeDao(String mToastStr){
        changeLeixing.changeLei(mToastStr);
    }
    public void addBeauinfoToast(BeauinfoToast beauinfotoast){

        BeauinfoToast = beauinfotoast;
    }

    public void setbeauinfotoast(String str){
        BeauinfoToast.showToast(str);
    }

}
